From: Florian Müllner Date: Sat, 30 Nov 2019 06:27:48 +0000 (+0100) Subject: extensionPrefs: Don't fill view X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~52 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1afd2c6ad2b4d86e22460042d47c789967e08cb5;p=gnome-shell.git extensionPrefs: Don't fill view Extension rows contain both name/description and controls to open preferences and enable/disable the extension. Those elements become disassociated when the row expands too much horizontally, so instead of filling the entire view, switch to the embedded list style[0]. [0] https://developer.gnome.org/hig/stable/lists.html.en https://gitlab.gnome.org/GNOME/gnome-shell/issues/1968 --- diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 5468e539e..55172fb54 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -524,6 +524,7 @@ class ExtensionRow extends Gtk.ListBoxRow { let desc = this._extension.metadata.description.split('\n')[0]; label = new DescriptionLabel({ label: desc, wrap: true, lines: 2, ellipsize: Pango.EllipsizeMode.END, + max_width_chars: 60, xalign: 0, yalign: 0 }); vbox.add(label); diff --git a/js/extensionPrefs/ui/extensions-window.ui b/js/extensionPrefs/ui/extensions-window.ui index 6fa3f5719..8c235f4a0 100644 --- a/js/extensionPrefs/ui/extensions-window.ui +++ b/js/extensionPrefs/ui/extensions-window.ui @@ -32,9 +32,20 @@ True - + True - none + vertical + center + 36 + + + True + none + + +